package com.czy.booktest02.demos.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.czy.booktest02.demos.pojo.po.ShoppingCart;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ShoppingCartMapper extends BaseMapper<ShoppingCart> {
    int addBookToCart(ShoppingCart shoppingCart);

    int addOrDecBook(ShoppingCart shoppingCart);

    int deleteBookFromCart(int id);

    List<ShoppingCart> selectListById(int userId);

    void deleteId(Integer id);
}
